﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="frmUsuario.aspx.cs" Inherits="SISLOG.Web.frmUsuario" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <fieldset>
        <legend>Usuario</legend>
        <fieldset>
            <legend>Buscar Usuario</legend>    
                &nbsp;&nbsp;&nbsp;<asp:RadioButton ID="RadioButton1" runat="server" text="DNI" GroupName="Radio"/>
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    <asp:RadioButton ID="RadioButton2" runat="server" text="Apellido" GroupName="Radio"/>
                    <br />
                    <br />
                    &nbsp;&nbsp;&nbsp;
                    <asp:Label ID="Label1" runat="server" Text="Buscar:"></asp:Label>
                &nbsp;<asp:TextBox ID="txtBuscarUsu" runat="server" Width="260px"></asp:TextBox>
                &nbsp;&nbsp;&nbsp; <asp:Button ID="btnBuscarUsu" runat="server" Text="Buscar" onclick="btnBuscarUsu_Click" />
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                <asp:Button ID="btnNuevo" runat="server" Text="Nuevo Usuario" 
                    onclick="btnNuevo_Click" />
    </fieldset>
    <fieldset>
        <legend>Listar Usuario</legend>  
                <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
            CellPadding="4" ForeColor="#333333" GridLines="None" AllowPaging="True">
                    <AlternatingRowStyle BackColor="White" />
                    <Columns>
                        <asp:BoundField DataField="idUsuario" HeaderText="Id Usuario" 
                            SortExpression="idUsuario" />
                        <asp:BoundField DataField="dni" HeaderText="DNI" 
                            SortExpression="dni" />
                        <asp:BoundField DataField="nombres" HeaderText="Nombres" 
                            SortExpression="nombres" />
                        <asp:BoundField DataField="apellidoPaterno" HeaderText="Apellido Paterno" 
                            SortExpression="apellidoPaterno" />
                        <asp:BoundField DataField="apellidoMaterno" HeaderText="Apellido Materno" 
                            SortExpression="apellidoMaterno" />
                        <asp:BoundField DataField="contrasenia" HeaderText="Contraseña" 
                            SortExpression="contrasenia" />
                        <asp:BoundField DataField="Area" HeaderText="Area" SortExpression="Area" />
                        <asp:HyperLinkField DataNavigateUrlFields="idUsuario" 
                            DataNavigateUrlFormatString="frmCRUDUsuario.aspx?acc=editar&amp;id={0}" HeaderText="Editar" 
                            Text="Editar" />
                    </Columns>
                    <EditRowStyle BackColor="#2461BF" />
                    <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                    <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                    <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                    <RowStyle BackColor="#EFF3FB" />
                    <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                    <SortedAscendingCellStyle BackColor="#F5F7FB" />
                    <SortedAscendingHeaderStyle BackColor="#6D95E1" />
                    <SortedDescendingCellStyle BackColor="#E9EBEF" />
                    <SortedDescendingHeaderStyle BackColor="#4870BE" />
                </asp:GridView>
    </fieldset>
    </fieldset>
    </asp:Content>
